package com.csweimei.rentmanagementtreasure.tenant.ui.act;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.chad.library.BR;
import com.csweimei.rentmanagementtreasure.R;
import com.csweimei.rentmanagementtreasure.base.AppConfig;
import com.csweimei.rentmanagementtreasure.databinding.ActivityMessDetailBinding;
import com.csweimei.rentmanagementtreasure.http.entity.MessageListBean;
import com.csweimei.rentmanagementtreasure.tenant.viewModel.MessDetailVM;

import me.goldze.mvvmhabit.base.BaseActivity;

public class MessDetailActivity extends BaseActivity<ActivityMessDetailBinding, MessDetailVM> {


    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.activity_mess_detail;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    MessageListBean.DataDTO bean;
    @Override
    public void initParam() {
        super.initParam();
        bean = (MessageListBean.DataDTO) getIntent().getSerializableExtra(AppConfig.BUNDLE_KEY);
    }

    @Override
    public void initData() {
        super.initData();
        viewModel.entity.set(bean);
    }
}